#! /usr/bin/env python
# _*_ coding: utf-8 _*_

import wx
import wx.grid

class SimpleGrid(wx.grid.Grid):

    def __init__(self, parent):
        wx.grid.Grid.__init__(self, parent, wx.NewId())
        self.CreateGrid(9, 2)

class Frame(wx.Frame):

    def __init__(self, parent):
        wx.Frame.__init__(self, parent, wx.NewId(), 'Grid')
        grid = SimpleGrid(self)

if __name__ == "__main__":
    app = wx.PySimpleApp()
    frame = Frame(None)
    frame.Show()
    app.MainLoop()
        
